package leetcode.string;

import leetcode.string.common.StringUtils;

class Solution245 {
    public int shortestWordDistance(String[] wordsDict, String word1, String word2) {
        return StringUtils.shortestWordDistance(wordsDict, word1, word2);
    }
}

public class leetcode245 {
    public static void main(String[] args) {
        Solution245 solution245 = new Solution245();
        String[] wordsDict = {"practice", "makes", "perfect", "coding", "makes"};
        System.out.println(solution245.shortestWordDistance(wordsDict, "makes", "makes"));
    }
}
